#include <stdio.h>
#include <math.h>
#include "prime.h"

int
main(int argc, char *argv[])
{
	int index_prime = 1; // Kuris prime
	int cur_prime = 2;

	while( 1 ) {
		cur_prime = next_prime(cur_prime);
		index_prime++;
		if( index_prime == 10001 )
			break;
	}

	printf("%dth prime number is %d\n", index_prime, cur_prime);

	return 0;
}
